package com.typingtutor.ui.compose;

import javax.swing.*;
import java.awt.*;
import java.util.List;

public class CustomOptionPane extends JPanel {
    public static List<String> showInputDialog(Component parent, List<String> fieldNames, List<Boolean> requiredFlags, String title
    , Dimension dimension) {
        CustomInputDialog dialog = new CustomInputDialog(parent, title, fieldNames, requiredFlags, dimension);
        dialog.setVisible(true);
        return dialog.getInputValues();
    }
}
